package com.hzit.bj1804.dian.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * DIARYINFO
 * @author 
 */
public class Diaryinfo implements Serializable {
    private Integer recordid;

    private String loginname;

    private String idaddress;

    private Date logintime;

    private Short loginresult;

    private static final long serialVersionUID = 1L;

    public Integer getRecordid() {
        return recordid;
    }

    public void setRecordid(Integer recordid) {
        this.recordid = recordid;
    }

    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }

    public String getIdaddress() {
        return idaddress;
    }

    public void setIdaddress(String idaddress) {
        this.idaddress = idaddress;
    }

    public Date getLogintime() {
        return logintime;
    }

    public void setLogintime(Date logintime) {
        this.logintime = logintime;
    }

    public Short getLoginresult() {
        return loginresult;
    }

    public void setLoginresult(Short loginresult) {
        this.loginresult = loginresult;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Diaryinfo other = (Diaryinfo) that;
        return (this.getRecordid() == null ? other.getRecordid() == null : this.getRecordid().equals(other.getRecordid()))
            && (this.getLoginname() == null ? other.getLoginname() == null : this.getLoginname().equals(other.getLoginname()))
            && (this.getIdaddress() == null ? other.getIdaddress() == null : this.getIdaddress().equals(other.getIdaddress()))
            && (this.getLogintime() == null ? other.getLogintime() == null : this.getLogintime().equals(other.getLogintime()))
            && (this.getLoginresult() == null ? other.getLoginresult() == null : this.getLoginresult().equals(other.getLoginresult()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRecordid() == null) ? 0 : getRecordid().hashCode());
        result = prime * result + ((getLoginname() == null) ? 0 : getLoginname().hashCode());
        result = prime * result + ((getIdaddress() == null) ? 0 : getIdaddress().hashCode());
        result = prime * result + ((getLogintime() == null) ? 0 : getLogintime().hashCode());
        result = prime * result + ((getLoginresult() == null) ? 0 : getLoginresult().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", recordid=").append(recordid);
        sb.append(", loginname=").append(loginname);
        sb.append(", idaddress=").append(idaddress);
        sb.append(", logintime=").append(logintime);
        sb.append(", loginresult=").append(loginresult);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}